home *** CD-ROM | disk | FTP | other *** search
/ Game.EXE 2005 November / Game.EXE_11_2005_DVD.iso / Flash Games / Robo Farmer / robofarmer.swf / scripts / DefineButton2_442 / BUTTONCONDACTION on(release).as
Encoding:
Text File  |  2005-09-23  |  1.6 KB  |  59 lines

  1. on(release){
  2.    _root.allliveslost = false;
  3.    _root.keyposition = 1;
  4.    _root.bestscore = 0;
  5.    _root.qual = "Full";
  6.    _root.pshieldup = false;
  7.    _root.pfireinprog = false;
  8.    _root.i = 0;
  9.    _root.e = 0;
  10.    _root.t = 0;
  11.    _root.pdir = "Right";
  12.    _root.pspeed = 8;
  13.    _root.rounds = 12;
  14.    _root.clips = "--";
  15.    _root.healthpoints = 100;
  16.    _root.healthsub = 0;
  17.    _root.armorpoints = 100;
  18.    _root.armorsub = 0;
  19.    _root.health = (_root.healthpoints - _root.healthsub) / _root.healthpoints * 100;
  20.    _root.armor = (_root.armorpoints - _root.armorsub) / _root.armorpoints * 100;
  21.    _root.pguncap = 12;
  22.    _root.ptclips = 3;
  23.    _root.fallspeed = 10;
  24.    _root.jumpspeed = 25;
  25.    _root.isjumping = false;
  26.    _root.inair = true;
  27.    _root.hitobject = false;
  28.    _root.money = 0;
  29.    _root.score = 0;
  30.    _root.justonobject = false;
  31.    _root.lives = 3;
  32.    _root.tdeaths = 0;
  33.    _root.level = 1;
  34.    _root.stage = 1;
  35.    _root.glockrounds = 12;
  36.    _root.thompsonrounds = 30;
  37.    _root.shotgunrounds = 7;
  38.    _root.deaglerounds = 7;
  39.    _root.ak47rounds = 35;
  40.    _root.glockinccap = 0;
  41.    _root.glockincdam = 0;
  42.    _root.thompsoninccap = 0;
  43.    _root.thompincdam = 0;
  44.    _root.shotguninccap = 0;
  45.    _root.shotgunincdam = 0;
  46.    _root.deagleinccap = 0;
  47.    _root.deagleincdam = 0;
  48.    _root.ak47inccap = 0;
  49.    _root.ak47incdam = 0;
  50.    _root.thompsonisowned = false;
  51.    _root.shotgunisowned = false;
  52.    _root.deagleisowned = false;
  53.    _root.AK47isowned = false;
  54.    _root.player.prightarm1.pgun.gotoAndStop(_root.pgunactive);
  55.    _root.player.prightarm2.pgun.gotoAndStop(_root.pgunactive);
  56.    _root.sndblip.start();
  57.    _root.nextFrame();
  58. }
  59.